package com.example.luowqtest.controller;

import com.example.luowqtest.vo.resObj;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

public class testTwoController {
    @RequestMapping(value="/twotest1",method = RequestMethod.GET)
    @ResponseBody
    public resObj test2Func1(){
        System.out.println("这是第一次的代码");
        resObj res = new resObj();
        res.setCode("0000");
        res.setMsg("访问到了第一个函数==testFunc1");
        res.printTest();
        return  res;
    }
}
